import request from '@/utils/request'

// 车辆登记添加
export function addRegistration(data) {
  return request({
    url: '/carUseRegistration/add',
    method: 'POST',
    data
  })
}

// 车辆登记分页
export function getList(params) {
  return request({
    url: '/carUseRegistration/list',
    method: 'POST',
    params
  })
}

// 查询单条车辆登记信息
export function selectRegistration(params) {
  return request({
    url: '/carUseRegistration/load',
    method: 'POST',
    params
  })
}

// 修改车辆登记信息
export function updateRegistration(data) {
  return request({
    url: '/carUseRegistration/update',
    method: 'post',
    data
  })
}

// 删除车辆登记信息
export function deleteRegistration(data) {
  return request({
    url: '/carUseRegistration/delete',
    method: 'POST',
    data
  })
}

// 模糊查询团队下拉信息
export function selectTeam(params) {
  return request({
    url: '/administrative/teams/getTeamIdAndNameListByName',
    method: 'post',
    params
  })
}

// 查所有人
export function selectOperator(params) {
  return request({
    url: '/employee/personnelInfoOther',
    method: 'post',
    params
  })
}

//
export function selectCarInfo(params) {
  return request({
    url: '/carInformation/carInfo',
    method: 'post',
    params
  })
}
